package com.hgd.jni;

import java.math.BigDecimal;
import java.util.Random;

public class xxx {
	public static void main(String[] args) {
		Random rd=new Random();
		double [] vArray = new double[50];
		
		for (int i = 0; i < 50; i++) {
			
			double V=(rd.nextDouble()+1);
			int m  = rd.nextInt(4);
			BigDecimal b = new BigDecimal(V); 
			V = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue()+m;
			vArray[i] = V;
			System.out.println(vArray[i]);
		}		
	}
}
